package com.library.service;


import com.library.bean.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;
public interface BookService {

    //查询所有书本
    List<Book> selectAllBooks();

    //删除书本
    int deleteBook(int bookId);

    //修改书本
    int updateBook(Book book);

    //根据bookId查询书本
    Book selectBookById(int bookId);

    //添加书本
    int insertBook(Book book);

    //更改bookCover
    int updateBookCover(@Param("bookName") String bookName, @Param("bookCover") String bookCover);

    //多条件查询
    List<Book> selectBooksByCondition(Book book, String startDate,String endDate);
}
